<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0">
    <title>vue-mall</title>
    <script>
      (function(doc, win) {
          var docEl = doc.documentElement,
          resizeEvt = 'orientationchange' in window ? 'orientationchange': 'resize',
          recalc = function() {
              var clientWidth = docEl.clientWidth;
              if(clientWidth>750){
                  clientWidth=750;
              }
              if(clientWidth<320){
                  clientWidth=320;
              }
              if (!clientWidth) return;
              // docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
              docEl.style.fontSize = clientWidth / 20 + 'px';
          };

          if (!doc.addEventListener) return;
          win.addEventListener(resizeEvt, recalc, false);
          doc.addEventListener('DOMContentLoaded', recalc, false);
      })(document, window);
    </script>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
